Coder Social home page Coder Social logo

POSIX Signal Handler and Proxy/Bus about aurae HOT 3 OPEN

krisnova avatar krisnova commented on August 16, 2024
POSIX Signal Handler and Proxy/Bus

from aurae.

Comments (3)

dmah42 avatar dmah42 commented on August 16, 2024

i believe SIGTERM should do the "die nice". SIGINT is a "user triggered interrupt" signal that processes can interpret however they want but it doesn't necessarily suggest termination.

https://dsa.cs.tsinghua.edu.cn/oj/static/unix_signal.html

this also suggests "SIGINT is nearly identical to SIGTERM". SIGINT is explicity "sent from a user" though.

from aurae.

future-highway avatar future-highway commented on August 16, 2024

Looking for some clarification on 3...

Should (a) every signal auraed receives be sent to every executable? Or are we saying (b) we want to add rpc signal(CellServiceSignalRequest) ... so that clients can send targeted signals to select executables?

I'm thinking we want the option b. Right?

from aurae.

dmah42 avatar dmah42 commented on August 16, 2024

if a SIGKILL is sent to auraed, i assume it means "die in a fire" and we should take down everything auraed has spawned along with us.

SIGTERM would be the same, and would also expect spawned processes/nested aurae to "die nicely" so that needs to be passed along, but maybe that means calling the various Stop and Free APIs instead.

SIGHUP is a different one as i suspect we'd only want that to be handled by auraed.

so i think 1 and 2 hold, but 3 isn't necessary as it's not obvious how we would interpret the signals.

this leaves an open question: how do we send a signal to a spawned executable managed by a nested auraed?

from aurae.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.