mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:05:08 +00:00

Update various places that now need wider promises as they are not reset by fork() anymore.
29 lines
593 B
C++
29 lines
593 B
C++
#include "TaskbarWindow.h"
|
|
#include <LibGUI/GApplication.h>
|
|
#include <signal.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
if (pledge("stdio shared_buffer proc exec rpath unix cpath fattr", nullptr) < 0) {
|
|
perror("pledge");
|
|
return 1;
|
|
}
|
|
|
|
GApplication app(argc, argv);
|
|
|
|
if (pledge("stdio shared_buffer proc exec rpath unix", nullptr) < 0) {
|
|
perror("pledge");
|
|
return 1;
|
|
}
|
|
|
|
TaskbarWindow window;
|
|
window.show();
|
|
|
|
signal(SIGCHLD, [](int signo) {
|
|
(void)signo;
|
|
wait(nullptr);
|
|
});
|
|
|
|
return app.exec();
|
|
}
|