aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-14 21:32:45 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-15 10:04:59 -0800
commit1fa81430ca9746ccce620a26313b3c1f1b698e0d (patch)
tree58147e1bbfffabe06b4a8fed3056ea21e6228c57
parenteb68c35670afbb1f8e8abc010f1e1cae9e4122f7 (diff)
downloadffmpeg-1fa81430ca9746ccce620a26313b3c1f1b698e0d.tar.gz
ffserver: use EXIT_FAILURE on failed child fork()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 981eece981..36dc2343e7 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -443,7 +443,7 @@ static void start_children(FFServerStream *feed)
feed->pid = fork();
if (feed->pid < 0) {
http_log("Unable to create children: %s\n", strerror(errno));
- exit(1);
+ exit(EXIT_FAILURE);
}
if (feed->pid)