Coder Social home page Coder Social logo

Comments (2)

erikd avatar erikd commented on June 1, 2024

Furthermore, why is the handling of these two signals so very different from the more commonly used ones in System.Posix.Signals.hs.

I suspect that since these were never used (because of the configure.ac issue) they bit rotted, and should be brought into line with the rest.

from unix.

erikd avatar erikd commented on June 1, 2024

A couple of options here:

  • Drop these (ie the file System/Posix/Signals/Exts.hsc) completely. This file was added in 2004 and I can see no evidence of it working correctly after this commit:

    commit 1c4608e
    Author: Simon Marlow [email protected]
    Date: Thu Feb 19 10:05:32 2009 +0000

  • Keep them, but make them work like all the other signals and drop infoEvent and windowChange as they add nothing and have not been available since 2009.

  • Move the definitions of sigINFO and sigWINCH from System/Posix/Signals/Exts.hsc to System/Posix/Signals.hsc and make them work like all the other signals. They aren't POSX, but does that matter? They can be documented as being "non-POSIX" and where they are not available, they will have a value of -1, the same as any other signal that is not available.

I kind of like the last option.

from unix.

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.