]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Check return value of para_exec_cmdline_pid().
authorAndre Noll <maan@systemlinux.org>
Tue, 13 Mar 2012 21:30:34 +0000 (22:30 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 18 Mar 2012 20:08:36 +0000 (21:08 +0100)
commitd0d27cfa56d05eaa0e5567c75adfe606eab2957e
treecdd9031f7177bc08d1ba3a1166ce278ee6e6e66b
parent3367017659e639aa8925ff4c607f1d41d24e657e
gui: Check return value of para_exec_cmdline_pid().

external_cmd() calls this function to execute the given command.
However, as para_exec_cmdline_pid() may fail, e.g. because the
underlying call to fork() failed due to hitting the RLIMIT_NPROC
resource limit, we must check the return value. The other two command
dispatchers got this right, but external_cmd() did not.
gui.c