mirror of https://github.com/jkjoy/sunpeiwen.git
9 lines
321 B
JavaScript
9 lines
321 B
JavaScript
|
/* IMPORT */
|
||
|
import process from 'node:process';
|
||
|
/* MAIN */
|
||
|
const IS_USER_ROOT = process.getuid ? !process.getuid() : false;
|
||
|
const LIMIT_FILES_DESCRIPTORS = 10000; //TODO: Fetch the real limit from the filesystem, somehow
|
||
|
const NOOP = () => undefined;
|
||
|
/* EXPORT */
|
||
|
export { IS_USER_ROOT, LIMIT_FILES_DESCRIPTORS, NOOP };
|