ffserver: use EXIT_FAILURE on failed child fork()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
eb68c35670
commit
1fa81430ca
@ -443,7 +443,7 @@ static void start_children(FFServerStream *feed)
|
|||||||
feed->pid = fork();
|
feed->pid = fork();
|
||||||
if (feed->pid < 0) {
|
if (feed->pid < 0) {
|
||||||
http_log("Unable to create children: %s\n", strerror(errno));
|
http_log("Unable to create children: %s\n", strerror(errno));
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (feed->pid)
|
if (feed->pid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user