Skip to content

Commit b94970c

Browse files
committed
lin_xs_cli: fxAbort() takes a status arg now
1 parent d5b9a11 commit b94970c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xs/platforms/lin_xs_cli.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ extern void fxRunPromiseJobs(void* machine);
2424
extern txS1 fxPromiseIsPending(xsMachine* the, xsSlot* promise);
2525
extern txS1 fxPromiseIsRejected(xsMachine* the, xsSlot* promise);
2626

27-
void fxAbort(xsMachine* the)
27+
void fxAbort(xsMachine* the, int status)
2828
{
29-
exit(1);
29+
exit(status);
3030
}
3131

3232
int main(int argc, char* argv[]) // here

0 commit comments

Comments
 (0)