Correct checking of setsid() return value (from bvs@bitblocks.com).

This commit is contained in:
mycroft 1993-05-10 03:59:43 +00:00
parent 9948c39839
commit 3558cc99e4
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ main(argc, argv)
#ifdef POSIX
if (fork() > 0)
exit(0);
if (setsid() != 0)
if (setsid() < 0)
perror("setsid");
#else
if ((fd = open("/dev/tty", O_RDONLY, 0)) >= 0) {