yuce / pyopenbsd Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for some OpenBSD-specific APIs
License: BSD 3-Clause "New" or "Revised" License
Python wrapper for some OpenBSD-specific APIs
License: BSD 3-Clause "New" or "Revised" License
I started to add tests in my fork, and I found that a process calling pledge('', '')
always gets killed.
$ python3.8 -c "import openbsd; openbsd.pledge('', '')"
Abort trap (core dumped)
I thought that python might be calling some forbidden syscall at the end of the program, so I tried with os._exit
:
$ python3.8 -c "import os; import openbsd; openbsd.pledge('', ''); os._exit(0)"
Abort trap (core dumped)
Same issue. On the manual of pledge(2), it is said that _exit(2)
is allowed.
A promises value of "" restricts the process to the _exit(2) system call. This can be used for pure computation operating on memory shared with another process.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.