This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Program that denies its own exit using seccomp-bpf, so it will consume 100% CPU forever, unless killed externally. | |
// Execute this program with strace to see that exiting actually fails. | |
#include <errno.h> | |
#include <linux/bpf.h> | |
#include <linux/filter.h> | |
#include <linux/seccomp.h> | |
#include <linux/unistd.h> | |
#include <signal.h> | |
#include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "server-with-assets.js", | |
"output": "sea-prep.blob", | |
"useSnapshot": true, | |
"codeCache": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const wrappedFunc = Worklet.prototype.addModule; | |
Worklet.prototype.addModule = async function(url) { | |
try { | |
return await wrappedFunc.call(this, url); | |
} catch (e) { | |
if (e.name != 'AbortError') { | |
throw e; | |
} | |
// assume error is caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1572644 |