ash: do not let EXIT trap to fire in `trap`
[oweals/busybox.git] / console-tools / deallocvt.c
index e9a3989c7680fe371164f63a8877dc701d6d47db..09748834feabfcfa12953b1cc3dfeb1b6ec440bf 100644 (file)
@@ -28,6 +28,6 @@ int deallocvt_main(int argc UNUSED_PARAM, char **argv)
        }
 
        /* double cast suppresses "cast to ptr from int of different size" */
-       xioctl(get_console_fd(), VT_DISALLOCATE, (void *)(ptrdiff_t)num);
+       xioctl(get_console_fd_or_die(), VT_DISALLOCATE, (void *)(ptrdiff_t)num);
        return EXIT_SUCCESS;
 }