X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=store.cc;h=a156a570f791c3539ec9f457533fd5b04287dbb7;hb=18978c991772448ba77d6e11f921f1ab3d0b8fd2;hp=caec3475ade588c04e7e9e33571ff2d30bd2d063;hpb=dbba40b5a3722e4acb0cc043f0be1bebff872f27;p=cumulus.git diff --git a/store.cc b/store.cc index caec347..a156a57 100644 --- a/store.cc +++ b/store.cc @@ -98,10 +98,10 @@ int spawn_filter(int fd_out, const char *program, pid_t *filter_pid) /* Create a child process which can exec() the filter program. */ pid = fork(); - if (filter_pid < 0) + if (pid < 0) throw IOException("Unable to fork filter process"); - if (filter_pid > 0) { + if (pid > 0) { /* Parent process */ close(fds[0]); cloexec(fds[1]);