Menu

#1 wmseti 1.0.3 core dumps on FreeBSD 4.8

open-accepted
None
5
2003-07-21
2003-06-20
No

wmseti 1.0.3 coredumps because of some faulty code, as
noted in the source you where requesting a better way
to do this.
This patch should supply you with the requested info,
this however means that somebody needs to tell the make
file to link against libkvm (-lkvm) when compiled on
FreeBSD, since this new functionality uses it to
retrieve the requested informationen.
The function call is implemented in a seperate .c file
so you can conditionally compile/link it for FreeBSD

Re.

Discussion

  • Chris Larsen

    Chris Larsen - 2003-06-20

    Patch to fix wmseti for use with freebsd proper kvm_getproc call

     
  • Chris Larsen

    Chris Larsen - 2003-06-21

    Logged In: YES
    user_id=805827

    Overlooked important missing codeline :-)
    The latter patch is correct.

     
  • Chris Larsen

    Chris Larsen - 2003-06-21

    correct patch to fix wmset for use with freebsd kvm_getproc call

     
  • Alan Swanson

    Alan Swanson - 2003-07-21
    • assigned_to: nobody --> swanson
    • status: open --> open-accepted
     
  • Alan Swanson

    Alan Swanson - 2003-07-21

    Logged In: YES
    user_id=24564

    Hi. Will apply and sort out the Makefile for FreeBSD.

    Hmm, it only took a month to notice this patch! Ooops.

     
  • Chris Larsen

    Chris Larsen - 2003-07-21

    Logged In: YES
    user_id=805827

    Well i was dying for some attention here *G*

    Anyway, after my last endavours with wmseti i started using
    it on freebsd 5.x as well, and it seems some minor changes
    have been made to the kvm interface with respect to variable
    naming. So here is an updated fbsd_getpidstat.c file that
    takes care of this problem.

     
  • Chris Larsen

    Chris Larsen - 2003-07-21

    Logged In: YES
    user_id=805827

    Whoops forgot to click the checkbox here comes the file.

     
  • Chris Larsen

    Chris Larsen - 2003-07-21

    fbsd_getpidstat.c that works on 4.x and 5.x

     

Log in to post a comment.