Exec the getpid atom when testing for syslet support
authorZach Brown <zach.brown@oracle.com>
Wed, 19 Sep 2007 06:42:19 +0000 (08:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 19 Sep 2007 06:42:19 +0000 (08:42 +0200)
Signed-off-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/syslet-rw.c

index dcfcb79f4b16b62c4c0c5038b9548a72ee3cfaf6..83c9842404ed424fc6512828510cd7d7498de54c 100644 (file)
@@ -297,7 +297,7 @@ static int check_syslet_support(struct syslet_data *sd)
        void *ret;
 
        init_atom(&atom, __NR_getpid, NULL, NULL, NULL, NULL, NULL, 0, NULL);
-       ret = async_exec(sd->head, &sd->ahu);
+       ret = async_exec(&atom, &sd->ahu);
        if (ret == (void *) -1)
                return 1;