*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 26 Nov 2006 14:53:00 +0000 (14:53 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 26 Nov 2006 14:53:00 +0000 (14:53 +0000)
mmsoftware/js/classes/TODO.txt [new file with mode: 0644]
mmsoftware/js/classes/js_file.c

diff --git a/mmsoftware/js/classes/TODO.txt b/mmsoftware/js/classes/TODO.txt
new file mode 100644 (file)
index 0000000..ff23e2a
--- /dev/null
@@ -0,0 +1,7 @@
+- Implement security policy module
+- Add berkeley db4 support
+- Add a Timer module
+  - Should have sleep, usleep, nanosleep etc, as well as setitimer support
+- Add a Signal module to install custom JS handlers.  Ideally, signal would
+  get queued then user handler called when exiting the signal handler...
+  With automatic signal blocking during processing.
index e1d2010..1ca4ac5 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: js_file.c,v 1.8 2006/10/27 05:20:07 mmondor Exp $ */
+/* $Id: js_file.c,v 1.9 2006/11/26 14:53:00 mmondor Exp $ */
 
 /*
  * Copyright (c) 2006, Matthew Mondor
@@ -486,7 +486,7 @@ file_sm_popen(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
        f->vbuf = NULL;
        f->vbufsize = 0;
 
-       if ((f->fh = popen(cmd, mode)) != 0) {
+       if ((f->fh = popen(cmd, mode)) == NULL) {
                QUEUE_EXCEPTION(strerror(errno));
                goto err;
        }