Settings, Windows, Behavior
Setting, Keyboard, Layouts, Options
weather@mockturtl
hwmonitor@sylfurd
Settings, Windows, Behavior
Setting, Keyboard, Layouts, Options
weather@mockturtl
hwmonitor@sylfurd
Here are the most important CMMC resources.
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char** argv) {
int pid = fork();
if (pid == 0) {
printf("child, errno: %d\n", errno);
exit(0);
} else {
printf("parent, errno: %d\n", errno);
exit(0);
}
}
And here's the output under macos.
$ ./a.out
parent, errno: 0
child, errno: 22
The fork man page doesn't even list "Invalid argument" as a possible errno value...
#include <stdio.h>
#include <unistd.h>
#include <sys/errno.h>
int main(int argc, char **argv) {
printf("this looks good: %d\n", sleep(1));
printf("this does not: %d\n", errno);
}
And the output.this looks good: 0
this does not: 60