Quit with error 1 if pid file write fails.

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@213 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Heikki Hannikainen 2008-03-22 10:34:35 +00:00
parent 9010a8deee
commit c056d92b26
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ int main(int argc, char **argv)
/* write pid file, now that we have our final pid... might fail, which is critical */
if (!writepid(pidfile))
exit(0);
exit(1);
/* catch signals */
signal(SIGINT, (void *)sighandler);