Git Product home page Git Product logo

Comments (8)

JensTimmerman avatar JensTimmerman commented on July 21, 2024

[root@osd010 ~]# cat /proc/2302819/cmdline
/usr/bin/python-E/usr/bin/zkrsync--configfiles=/etc/zkrs/kyukonhome.conf--session=kyukonhome--daemon-D

still shows /usr/bin/zkrsync in there

from vsc-install.

stdweird avatar stdweird commented on July 21, 2024

@JensTimmerman osd010 wasn't updated yet

from vsc-install.

JensTimmerman avatar JensTimmerman commented on July 21, 2024

same on osd009


[root@osd009 ~]#  cat /proc/2278866/cmdline
/usr/bin/python-E/usr/bin/zkrsync--configfiles=/etc/zkrs/kyukonhome.conf--session=kyukonhome--daemon-D

from vsc-install.

stdweird avatar stdweird commented on July 21, 2024

@JensTimmerman try ps -C
i guess the new wrapper in the shebang does an exec and ps sometimes shows before vs after exec?

from vsc-install.

JensTimmerman avatar JensTimmerman commented on July 21, 2024

@stdweird I know the procname is different, that is indeed changed, just trying to give some alternatives here.

If you consider this a bug, we could have the wrapper set the correct procname (linux only) with

def set_proc_name(newname):
    from ctypes import cdll, byref, create_string_buffer
    libc = cdll.LoadLibrary('libc.so.6')
    buff = create_string_buffer(len(newname)+1)
    buff.value = newname
    libc.prctl(15, byref(buff), 0, 0, 0)

but this seems a bit hacky

from vsc-install.

stdweird avatar stdweird commented on July 21, 2024

@JensTimmerman oh, i don't consider it a bug 😄
it would be nice to understand why it happened, but nothing more then that imho.
@kwaegema your fixes in https://github.ugent.be/hpcugent/vsc-backup/pull/6 are sufficient to work around this, right?

from vsc-install.

JensTimmerman avatar JensTimmerman commented on July 21, 2024

It happens because we now always call python, via
https://github.com/hpcugent/vsc-install/blob/master/bin/python-stripped-env#L32

maybe we should exec it instead?

from vsc-install.

stdweird avatar stdweird commented on July 21, 2024

@JensTimmerman ah, we wrote that. what happens if you use exec $PYTHON ... to start it?

from vsc-install.

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.