mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
oops
Origin commit data
------------------
Branch: ni/coolstream
Commit: bf1f9afc8d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-09-15 (Sat, 15 Sep 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -80,12 +80,12 @@ int my_system(const char * cmd, const char * arg1, const char * arg2, const char
|
|||||||
case 0: /* child process */
|
case 0: /* child process */
|
||||||
for(i = 3; i < maxfd; i++)
|
for(i = 3; i < maxfd; i++)
|
||||||
close(i);
|
close(i);
|
||||||
if(execlp(cmd, cmd, arg1, arg2, arg3, arg3, arg4, arg5, arg6, NULL))
|
if(execlp(cmd, cmd, arg1, arg2, arg3, arg4, arg5, arg6, NULL))
|
||||||
{
|
{
|
||||||
std::string txt = "ERROR: my_system \"" + (std::string) cmd + "\"";
|
std::string txt = "ERROR: my_system \"" + (std::string) cmd + "\"";
|
||||||
perror(txt.c_str());
|
perror(txt.c_str());
|
||||||
|
ret = -1;
|
||||||
}
|
}
|
||||||
ret = 1;
|
|
||||||
_exit (0); // terminate c h i l d proces s only
|
_exit (0); // terminate c h i l d proces s only
|
||||||
default: /* parent returns to calling process */
|
default: /* parent returns to calling process */
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user