We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8479784 commit 713e8e0Copy full SHA for 713e8e0
multithreading/01 - Signals_SIGCHLD.c
@@ -21,7 +21,7 @@ void kill_child_handler(int sig)
21
0); // Blocked mode.
22
if (done == -1)
23
{
24
- printf("No more child processes.\n", done);
+ printf("No more child processes.\n");
25
}
26
else
27
@@ -40,7 +40,7 @@ void kill_child_handler(int sig)
40
41
42
43
-void main()
+int main()
44
45
pid_t main_pid = getpid();
46
@@ -60,7 +60,7 @@ void main()
60
61
// Make child.
62
pid_t child_pid;
63
- if(child_pid = fork())
+ if((child_pid = fork()))
64
65
printf("Started child process %d.\n", child_pid);
66
0 commit comments