Search:

Type: Posts; User: NetworkLearning

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Just to clarify ..i dont THINK it would be too...

    Just to clarify ..i dont THINK it would be too hard but what do i know :)
    i need to add a custom config to putty , it reads this while starting and changes how it handles input/output from telnet...
  2. Would anyone be interested in customizing putty from source for me ?

    i have an idea i would like to see materialize ..if some c guru has some time to take on a small project please let me know
    if this is the wrong place to post , i apologize please let me know where...
  3. Got the poll function working , but now it only...

    Got the poll function working , but now it only lasts a little bit longer , still dies :(
  4. Btw i just ran file on the program ELF...

    Btw i just ran
    file on the program

    ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped
  5. Ok i re-read your whole posts .. i will give you...

    Ok i re-read your whole posts .. i will give you this i am over my head ..but can you help ? what FACTS would you like me to share ? i can share my screen with you on teamviewer if that helps ?
  6. What i am basically doing is not wrapping poll ,...

    What i am basically doing is not wrapping poll , and calling poll from poll again , so it gets called a few hundred times before i kill the program
    so i know its getting called
    i hope i am able to...
  7. #include #include #include...

    #include <poll.h>
    #include <unistd.h>
    #include <stdio.h>
    int poll(struct pollfd *fds, nfds_t nfds, int timeout) {
    usleep(100);
    printf("Sleeping\n");
    return poll(fds,nfds,timeout);...
  8. It compiles without error but my poll is not...

    It compiles without error but my poll is not getting called
    1. Preload works as i have tested it with removing wrap, then it gets into the function ( tested by adding a printf )
  9. Can someone please fix this poll function ?

    I need to wrap poll()
    and this is what i am trying to use


    #include <poll.h>
    #include <unistd.h>
    #include <sys/types.h>


    int __wrap_poll(struct pollfd *fds, nfds_t nfds, int timeout) {
  10. Replies
    57
    Views
    7,597

    hey I dont get any errors and when i preload...

    hey
    I dont get any errors
    and when i preload it with ld_preload , it does load
    i check it with LD_PRELOAD=/home/poll.so ldd ./program
    but the program is not using my version of the poll
  11. Replies
    57
    Views
    7,597

    can someone tell me my mistake in this ? ...

    can someone tell me my mistake in this ?



    #include <poll.h>
    #include <stdio.h>
    #include <unistd.h>


    int __wrap_poll(struct pollfd *fds, nfds_t nfds, int timeout) {
  12. Replies
    57
    Views
    7,597

    Update: I can sun 2 copies just fine but...

    Update: I can sun 2 copies just fine
    but another 2 dont work
  13. Replies
    57
    Views
    7,597

    Ok another interesting thing , hope i dont jinx...

    Ok another interesting thing , hope i dont jinx it , 2 copies are running fine of the same program with same timer.so loaded and 2 keep crashing
  14. Replies
    57
    Views
    7,597

    btw the file its trying to open i think is a...

    btw the file its trying to open i think is a socket that it uses to communicate with the other copy of the program
    basically you run 4 copies and they send stuff to each other by opening a socket in...
  15. Replies
    57
    Views
    7,597

    btw there is no corefile

    btw there is no corefile
  16. Replies
    57
    Views
    7,597

    Thanx but my doubt is 1. when i added printf to...

    Thanx but my doubt is
    1. when i added printf to empty gettime
    i DO get the *s printed on my screen
    2. is it possible that it , like you say , loads the new gettime
    and original gettime ,
    but...
  17. Replies
    57
    Views
    7,597

    so salem can you help me with the code for what i...

    so salem can you help me with the code for what i have in mind ?

    gettimeofday()
    if called first time , return correct time , store in variable
    after being called 2nd to 20 or 30 or...
  18. Replies
    57
    Views
    7,597

    when i give it return 0 for gettimeofday ( empty...

    when i give it return 0 for gettimeofday ( empty function just returns 0)
    then it gets stuck at


    t_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
    poll([{fd=4, events=POLLIN}, {fd=6,...
  19. Replies
    57
    Views
    7,597

    i increased it to 500 and still no luck ...

    i increased it to 500
    and still no luck



    rt_sigprocmask(SIG_BLOCK, [ALRM], NULL, 8) = 0
    gettimeofday({1348140798, 56749}, NULL) = 0
    rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0...
  20. Replies
    57
    Views
    7,597

    I have it running the new poll and its dumping...

    I have it running the new poll and its dumping core and strace is being written faster
  21. Replies
    57
    Views
    7,597

    nope dumped core

    nope dumped core
  22. Replies
    57
    Views
    7,597

    I am testing it now but in the meantime if this...

    I am testing it now
    but in the meantime if this does not work
    this is what i was thinking

    have a counter written to a file first time gettimeofday is called
    let it get the right time 20 times(...
  23. Replies
    57
    Views
    7,597

    strace is writing about 15mb a second with this ...

    strace is writing about 15mb a second with this
    is that normal :)
  24. Replies
    57
    Views
    7,597

    Dammit spoke too soon :( Core dumped well it...

    Dammit spoke too soon :(
    Core dumped
    well it ran for a whole 10 mins longer than before thats a good sign
  25. Replies
    57
    Views
    7,597

    [QUOTE=NetworkLearning;1123684]Salem, are you...

    [QUOTE=NetworkLearning;1123684]Salem,
    are you still here
    OK i have the program reading my version ( or your version ) of gettimeday but does not seem to be doing anything tho ?

    maybe throttle...
Results 1 to 25 of 53
Page 1 of 3 1 2 3