Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runlock.1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runlock \- prevent concurrent execution of a process
\fBrunlock\fR tries to hold an exclusive lock while it executes a
command. Subsequent execution of \fBrunlock\fR with the same lock,
while that lock is held, will cause the new instance of \fBrunlock\fR
to terminate with a faliure exit code. Otherwise, the exit code of the
to terminate with a failure exit code. Otherwise, the exit code of the
subprocess is returned.

.SH USAGE
Expand Down
2 changes: 1 addition & 1 deletion subprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int run_subprocess(char * command, char ** args, void (*pre_wait_function)(void)
alarm(0);
if (pid > 0) {
if (pid != childpid) {
syslog(LOG_ERR, "childpid %d not retured by waitpid! instead %d",
syslog(LOG_ERR, "childpid %d not returned by waitpid! instead %d",
childpid, pid);
kill_process_group();
exit(EX_OSERR);
Expand Down