- if ((fd[1] = creat(tmpname, 0400)) < 0)
- return(fd[1]);
- fd[0] = open(tmpname, 0);
+ if ((fd[1] = creat(tmpname, 0400)) < 0) {
+ msg("Could not create lockfile ");
+ perror(tmpname);
+ dumpabort();
+ }
+ if ((fd[0] = open(tmpname, 0)) < 0) {
+ msg("Could not reopen lockfile ");
+ perror(tmpname);
+ dumpabort();
+ }