Skip to content

Commit a3c354f

Browse files
authored
Merge pull request #1 from E5ten/no-exit
replace exit() in main() with return
2 parents 2494259 + e4410c9 commit a3c354f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kirc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ main(int argc, char **argv)
186186
if (pipe(fd) < 0)
187187
{
188188
fprintf(stderr, "pipe() failed");
189-
exit(2);
189+
return 2;
190190
}
191191

192192
pid_t pid = fork();

0 commit comments

Comments
 (0)