Don't use O_CLOEXEC flag to open()
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Nov 2010 16:00:35 +0000 (17:00 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Nov 2010 16:00:35 +0000 (17:00 +0100)
tools/wispr.c

index 2b44288..5e7a720 100644 (file)
@@ -361,7 +361,7 @@ static gboolean user_input(const char *label, gboolean hidden,
        data->user_data = user_data;
        data->hidden = hidden;
 
-       data->fd = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC);
+       data->fd = open("/dev/tty", O_RDWR | O_NOCTTY);
        if (data->fd < 0)
                goto error;